package haiyangwangwork.day05.homework.ex1;

public class Demo {
    public static void main(String[] args) {
        Swimmer swimmer=new Swimmer();
        Rider rider=new Rider();
        Ironman ironman=new Ironman();
        Shooter shooter=new Shooter();
        swimmer.swim();
        swimmer.run();
        rider.ride();
        rider.run();
        ironman.shoot();
        ironman.run();
        ironman.ride();
        ironman.run();
        shooter.run();
        shooter.shoot();

    }
}
